import requests

from common.get_header import get_header


# 查询优惠券接口
class Query_OrgCoupons_api(object):
    @classmethod
    def Query_OrgCoupons(cls,params):
        header=get_header()
        url='https://testapi.newdjk.cn/chainpharmacies/OrgCoupon/QueryOrgCoupons'

        resp=requests.get(url=url,
                        params=params,
                        headers={"Content-Type": "application/json", "Authorization":header},)
        return resp

if __name__ == '__main__':
    params = {"OrgId": 369, "Status": 4, "PageIndex": 1, "PageSize": 10}
    print(Query_OrgCoupons_api.Query_OrgCoupons(params).json())



